<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>

<link rel="stylesheet" type="text/css" href="/css/notice.css"/>
<script src="/ckeditor_4.1.2_standard/ckeditor.js"></script>

<script type="text/javascript" src="/js/notice.js"></script>

<!-- 오른쪽 내용 시작 -->
<form name="notice_modify_form" method="POST" action="/notice/noticeModify.desk" enctype="multipart/form-data">
	<input type="hidden" name="noticeSeq" value="<s:property value="noticeDetail.noticeSeq"/>"/>
      <dl class="Right_Contents_area">
        <dd class="Center_Top_title"> <span class="top_title"><img src="/images/notice/SubContents_Tit_01.gif" width="370" height="42" alt="공지사항" /></span> <span class="top_navi">HOME > 공지사항</span></dd>
        
        <dd class="Center_Top_contents">
          <div id="LIst_Zone">
            <dl>
              <dd>
              <table class="Writeboard" border="1" cellspacing="0" summary="글 내용을 표시">
                <caption> 글 읽기</caption>
                <colgroup><col width="105px"><col width="535px"><col width="80px"></colgroup>
                <thead>
                  <tr>
                    <th scope="row">제&nbsp; 목</th>
                    <td colspan="2"><input type="text" name="title" maxlength="50" style="width:560px;" tabindex="1" value="<s:property value="noticeDetail.title"/>"/></td>
                  </tr>  
                  <tr>
                    <th scope="row">글&nbsp;쓴&nbsp;이</th>
                    <td colspan="2"><input type="text" name="userName" maxlength="50" style="width:320px;" tabindex="2" value="관리자" readonly="readonly"/></td>
                  </tr> 
                  <tr>
                    <th scope="row" rowspan="2">첨부파일</th>
                    <c:if test="${empty noticeDetail.uploadFileName}">
                    <td class="right_line">
                    	<input type="file" name="upload" id="textfield" style="width:520px;" tabindex="3" />
                    	<s:fielderror cssClass="errorMessage">
	       	 				<s:param value="%{'upload'}" /> 
	   					</s:fielderror>
                    </td>
                    </c:if>
                   
                  </tr> 
                  <tr>
                    <td class="file_td" colspan="3">
                    	<c:if test="${not empty noticeDetail.uploadFileName}">
                    		<s:property value="noticeDetail.uploadFileName"/> <img src="/images/report/consult/board_Icon_del.gif" id="btn_del" style="cursor:pointer"/> <br/>
                    		<span class="TEXT_Red">(추가 업로드하시려면 기존 파일을 삭제하셔야 합니다. 첨부파일은 개당 최대 20MB 까지 지원 합니다.)</span>
                    	</c:if>
                    	<c:if test="${empty noticeDetail.uploadFileName}">
                    		<span class="TEXT_Red">(첨부파일은 개당 최대 20MB 까지 지원 합니다.)</span>
                    	</c:if>
                    </td>
                  </tr>                                                         
                </thead>
                <tbody>
                  <tr>
                    <td colspan="4" class="cont">
                    	<!-- <textarea  name="content" id="content" style="width:99%; height:200px; display:none;"><s:property value="noticeDetail.content"/></textarea> -->
                    	<textarea  name="content" id="content" style="width:99%; height:200px;"><s:property value="noticeDetail.content"/></textarea>
                    	<script>
                    		CKEDITOR.replace('content');
                    	</script>
                    </td>
                  </tr>
                  <tr>
                    <td colspan="4" class="line"></td>
                  </tr>              
                </tbody>
              </table>
              </dd>
            </dl> 
            <dl class="List_Btn_area"><!-- 버튼 부분 -->
             <dd class="Left_Zone"><a href="/notice/noticeList.desk"><img src="/images/notice/btn_list.gif" alt="목록" width="52" height="26" border="0" /></a></dd>
             <dd class="Right_Zone">
             	<input type="button" id="btn_notice_modify" value="수정"/>
             	<!-- 
             	<a href=""><img src="/images/notice/btn_writeOK.gif" width="70" height="26" alt="글저장" border="0" /></a>&nbsp;<a href="#"><img src="/images/notice/btn_cancel.gif" alt="취소" width="54" height="26" border="0" /></a></dd>
             	-->
            </dl><!-- 버튼 부분 -->          
          </div>
        </dd>
      </dl>
</form>
      <!-- 오른쪽 내용 끝 --> 
    </div>
  </div>
  <!-- center 나누어 지는 부분 끝 --> 
</div>
